﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Prowess.OIS.OISSetting;


namespace Prowess.OIS.ModelEntity
{
    [DataContract]
    public class DatabaseConfigurationModelEntity
    {
        public DatabaseConfigurationModelEntity()
        {
            ServerName = OISSettings.ServerName;
            UserName = OISSettings.UserName;
            PassWord = OISSettings.PassWord;
        }
        [DataMember]
        String ServerName {get;set;}        
        [DataMember]
        String UserName {get;set;}        
        [DataMember]
        String PassWord {get;set;}   
     
        public void Save()
        {
            
             OISSettings.ServerName=ServerName;
             OISSettings.UserName=UserName;
             OISSettings.PassWord=PassWord;
        }
    }
}
